package dao;

import model.MedicalBusiness;
import view.MedicalBusinessView;
import view.QueryView;

import java.util.List;
import java.util.Map;

public interface MedicalBusinessDao {
    int deleteByPrimaryKey(Integer id);

    int insert(MedicalBusiness record);

    int insertSelective(MedicalBusiness record);

    MedicalBusiness selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MedicalBusiness record);

    int updateByPrimaryKey(MedicalBusiness record);

    /**
     * @Author: 杨青桦
     * @Description:  删除重复年月份的数据
     * @Date: 2018/5/23 16:55
     * @return
     */
    int deleteRepeatData(QueryView queryView);


    /**
     * @Author: 杨青桦
     * @Description: 查询单个医院月份情况
     * @Date: 2018/5/23 15:57
     * @param map
     * @return
     */
    List<MedicalBusinessView> queryForHospital(Map map);

    /**
     * @Author: 杨青桦
     * @Description:  查询某医院分类情况
     * @Date: 2018/5/23 15:58
     * @param map
     * @return
     */
    List<MedicalBusinessView> queryForHospitalType(Map map);
}